FROM ubuntu:jammy

ENV SERVER_PATH /root/litian/

WORKDIR ${SERVER_PATH}

ARG JAR_FILE

ADD ${JAR_FILE} ${SERVER_PATH}/demo.jar

ENTRYPOINT ["java", "-jar", "./demo.jar"]



